/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_psr.problemas;

/**
 *
 * @author Rubén Avalos Elvira y Fabiana Celiberti Tapie
 */
public abstract class Variable {
    protected Object value;

    public Variable(Object v) {
        value = v;
    }
    public Variable(Variable v) {
        this.value = v.value;
    }
    public boolean equals(Object o) {
        if (o instanceof Variable) {
            Variable v = (Variable)o;
            return value.equals(v.value);
        }
        return false;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object v) {
        value = v;
    }

}
